/*
 * @Description: Socket.io API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-11-10 10:37:55
 */
import http from '@/utils/http/axios'

export function getItemList(params) {
  return http.request({
    url: '/socket_io/list',
    method: 'GET',
    params
  })
}
export function getAllItem(params) {
  return http.request({
    url: '/socket_io/all_list',
    method: 'GET',
    params
  })
}
export function editData(params) {
  return http.request(
    {
      url: '/socket_io/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delArtItem(params) {
  return http.request(
    {
      url: '/socket_io/delItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function addData(params) {
  return http.request(
    {
      url: '/socket_io/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getItemInfo(params) {
  return http.request({
    url: '/socket_io/editItemInfo',
    method: 'GET',
    params
  })
}
